{% extends "WebMainSiteBundle:User:layout.html.twig" %}
{% set title = "申请创办学校" %}
{% block title %}
    {{ title }}
{% endblock %}

{% block user_main %}
    {% if msg is defined %}
        <div class="grey-box  author-box">
            <div class="row">
                <p>{{ msg }}</p>
            </div>
        </div>
    {% endif %}
    <form class="form-horizontal" role="form"  method="post" target="msg">
        <div class="row">
            <div class="col-md-12">
                <h4 class="yahei">学校信息</h4>
                <hr/>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">机构性质</label></div>
                    <div class="col-md-9">
                        <label class="form-control"><input type="radio" name="type" value="0" /> 机构</label>
                        <label class="form-control"><input type="radio" name="type" value="1" /> 个人</label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">所属分类</label></div>
                    <div class="col-md-9">
                        <select name="category" class="form-control">
                            <option value="0">- 请选择学校类别 -</option>
                            {% for c in cat %}
                                <option value="{{ c.id }}">{{ c.name }}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">学校名称</label></div>
                    <div class="col-md-9">
                        <input name="name" type="text" class="form-control" id="phone" placeholder="请填写学校名称"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">学校标志</label></div>
                    <div class="col-md-9">
                        <input name="logoPic" type="hidden" class="MyUpload" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">学校简介</label></div>
                    <div class="col-md-9">
                        <textarea  name="intro" class="form-control" rows="11" id="info" placeholder="学校简介"></textarea>
                    </div>
                </div>
                <h4 class="yahei">联系人信息</h4>
                <hr/>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">联系人姓名</label></div>
                    <div class="col-md-9">
                        <input name="pName" type="text" class="form-control" placeholder="请填写联系人姓名"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">联系人手机</label></div>
                    <div class="col-md-9">
                        <input name="pPhone" type="text" class="form-control" placeholder="请填写联系人手机"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">联系人邮箱</label></div>
                    <div class="col-md-9">
                        <input name="pEmail" type="text" class="form-control" placeholder="请填写联系人邮箱"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">联系人QQ</label></div>
                    <div class="col-md-9">
                        <input name="pQQ" type="text" class="form-control" placeholder="请填写联系人QQ"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">联系人身份证号</label></div>
                    <div class="col-md-9">
                        <input name="pIdCard" type="text" class="form-control" placeholder="请填写联系人身份证号"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">上传身份证</label></div>
                    <div class="col-md-9">
                        <input name="pIdCardPic" type="hidden" class="MyUpload" />
                    </div>
                </div>
                <h4 class="yahei">机构信息</h4>
                <hr/>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">机构名</label></div>
                    <div class="col-md-9">
                        <input name="oName" type="text" class="form-control" placeholder="请填写机构名"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">机构类型</label></div>
                    <div class="col-md-9">
                        <label class="form-control"><input type="radio" name="oType" value="0" /> 线上机构</label>
                        <label class="form-control"><input type="radio" name="oType" value="1" /> 线下机构</label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">机构网址</label></div>
                    <div class="col-md-9">
                        <input name="oSite" type="text" class="form-control" placeholder="请填写机构网址"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">机构微博</label></div>
                    <div class="col-md-9">
                        <input name="oWebo" type="text" class="form-control" placeholder="请填写机构微博"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">组织机构代码</label></div>
                    <div class="col-md-9">
                        <input name="oCode" type="text" class="form-control" placeholder="请填写机构组织代码"  value=""/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-3 text-right"><label class="control-label">上传组织机构代码</label></div>
                    <div class="col-md-9">
                        <input name="oCodePic" type="hidden" class="MyUpload" />
                    </div>
                </div>
            </div>
            <p class="buttons-margin-horizontal">
                <input type="submit" class="btn btn-theme btn-green" value="提交审核" />
            </p>
        </div>
    </form>
{% endblock %}
{% block myJs %}
    {% include "AssetsUploadBundle:MyUpload:inc.html.twig" %}
{% endblock %}